package com.glsc.ngateway.common.base.repo.mysql.opmanagemain.ledger;

import java.util.List;

import com.glsc.ngateway.common.base.domain.mysql.opmanagemain.ledger.BusinessLedgerTask;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;


@Repository
public interface BusinessLedgerTaskRepository extends JpaRepository<BusinessLedgerTask, Integer>, JpaSpecificationExecutor<BusinessLedgerTask> {

    @Query("select m from BusinessLedgerTask m where m.id in :idList")
    List<BusinessLedgerTask> listLedgerById(@Param("idList") List<Integer> idList);
}
